<?php



class SessionDataMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.SessionDataMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('session_data');
		$tMap->setPhpName('SessionData');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('SESSION_ID', 'SessionId', 'string', CreoleTypes::VARCHAR, true, 32);

		$tMap->addColumn('HTTP_USER_AGENT', 'HttpUserAgent', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('SESSION_DATA', 'SessionData', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('SESSION_EXPIRE', 'SessionExpire', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('USERNAME', 'Username', 'string', CreoleTypes::VARCHAR, false, 50);

		$tMap->addColumn('AVATAR_PATH', 'AvatarPath', 'string', CreoleTypes::VARCHAR, false, 255);

	} 
} 